PreviousTracker indexSee it online !

(34/34) 50 - jEdit Java Virtual Machine launcher error

Recently I updated my Java but had it installed to a new folder, and then removed the old Java directory. There might be something that got messed up in the removal, because jEdit keeps on trying to access Java in the old directory.

I experienced the "jEdit requires JRE 1.8" error, but I've applied the fix as found in this ticket: https://sourceforge.net/p/jedit/bugs/4084/

However, whenever I try to open jEdit through an engine with a built in auto jEdit launcher, I get an error message from Java Virtual Machine launcher saying this: "Error: could not open [old Java directory]\jvm.cfg". If I open jEdit from jEdit.jar and jEdit.exe in the main installation directory, it opens just fine.

Is there a way to redirect the Java directory? I've reinstalled both the Java and jEdit, and it still keeps looking for the same wrong directory for the Java.

Submitted agasren - 2020-05-31 15:19:47.067000 Assigned
Priority 5 Labels
Status open Group None
Resolution None

Comments

2020-06-02 10:29:33.025000
vampire0

What do you mean by `an engine with a built in auto jEdit launcher`?
The `jvm.cfg` file not being found usually is a sign for a corrupt Java installation as this is a Java-internal file.
Maybe you didn't uninstall the old Java properly and some registry keys or paths in `the engine` you mentioned still point to the old Java path, or there is still `java.exe` in your `C:\Windows\System32` folder or similar and `the engine` you mentioned uses that which maybe still refers somehow to the old path because of some registry entry or similar.

There is not much we can do about this, especially as launching with `jEdit.exe` works properly as you said, so it picks up the correct Java path.

2020-06-02 11:11:54.907000
agasren

There's this button on the engine that says "edit scripts" and if I select jEdit as my editor, it will automatically open up jEdit.

Well... I've already had the folders and registry cleaned out, and the old Java is no longer shown in the Programs, but when I try to reinstall the Java, it still says "old Java detected" and it just refused to uninstall (since it's technically not there anymore).

Java Virtual Machine launcher still tries to access the old folder, and its giving that error because the folder no longer exists. Java exist, just in a different directory. This previously caused "jEdit requires JRE 1.8" error, but I downloaded the alternate jEdit.exe from the other bug listing and made it work.

2020-06-02 12:23:58.739000
vampire0

> Programs, but when I try to reinstall the Java, it still says "old Java detected"

This is a clear sign, that you did not fully wipe it out.
I guess there is still some registry entries pointing to the old version.

> There's this button on the engine that says "edit scripts" and if I select jEdit as my editor, it will automatically open up jEdit.

I still don't know what you mean by "the engine".
What engine?
Besides that the Java version is obviously not correctly wiped and some part is failing due to that, I guess the problem lies in "the engine" whatever it is, as running through `jEdit.exe` works fine as you said.

> Java exist, just in a different directory. This previously caused "jEdit requires JRE 1.8" error, but I downloaded the alternate jEdit.exe from the other bug listing and made it work.

This was a different problem. The original `jEdit.exe` you had did not find this halfly-uninstalled Java, but it also did not find the newly installed one. Because of that it said it couldn't find it. The fixed `jEdit.exe` you downloaded from that other issue had a fix regarding Java 11 compatibility iirc and also looks at `JAVA_HOME` environment variable.

2020-06-03 09:52:54.411000
agasren

Oh sorry. The engine is a python-based engine called Ren''py.
I've asked the engine dev too, but he said he doesn't know either. The engine launches jEdit through javaw.exe. I guess that nothing can be done if the Java is botched.
I already followed Java's instructions for removing failed uninstall registries and set the Paths correctly, but it's now saying cannot find SE Runtime...

![](https://i.stack.imgur.com/DJ4u9.png)

2020-06-04 21:29:33.101000
agasren

I have found the solution. There was something wrong with javaw.exe in C:\Windows\SysWOW64. After replacing the files, things work fine. This ticket can be closed, thanks.